﻿@model TestRuleBookModel
@using (var form = Ajax.BeginForm("Execute", "WebApiTest",new AjaxOptions()
{
    HttpMethod = "POST",
    InsertionMode = InsertionMode.Replace,
    UpdateTargetId = "TestJsonResult"
}))
{
    <div class="form-container">
        <div class="editor-label">
            @Html.Label("RuleBook")

        </div>
        <div class="editor-field">
            @Html.TextBoxFor(p=>p.RuleBook)
        </div>
        <div class="editor-label">
            @Html.Label("Effective Date")

        </div>
        <div class="editor-field">
            @Html.TextBoxFor(x=>x.EffectiveDate)
        </div>
        <div class="editor-label">
            @Html.Label("Json String")

        </div>
        <div class="editor-field">
            @Html.TextAreaFor(p=>p.Json,new {cols=75,rows=10})

        </div>


        <div>
            <input type="submit" value="Execute" />
        </div>
    </div>
}
Results:
<pre id ="TestJsonResult">
    
</pre>
